package cn.mst.vrs.controller.admin.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 认证新增/修改 Request VO")
@Data
public class AuthSaveReqVO {

    @Schema(description = "用户主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25742")
    @NotNull(message = "用户主键ID不能为空")
    private Long userId;

    @Schema(description = "认证类型主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30490")
    @NotNull(message = "认证类型主键ID不能为空")
    private Long typeId;

    @Schema(description = "认证标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "认证标识不能为空")
    private String identifier;

    @Schema(description = "认证凭证", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "认证凭证不能为空")
    private String credential;

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10773")
    private Long id;

}